<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'riskWarningLevel.label', default: 'RiskWarningLevel')}"/>
    <title>编辑风险等级</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>CINDATA</li>
                    <li>
                        <g:link controller="riskWarningLevel" action="index">风险等级</g:link>
                    </li>
                    <li class="active">
                        <span>编辑风险等级</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                编辑风险等级
            </h2>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                编辑风险等级
            </div>

            <div class="panel-body form-horizontal">
                <g:form resource="${this.riskWarningLevel}" method="PUT">
                    <g:if test="${flash.message}">
                        <div class="message alert alert-info" role="status">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${this.riskWarningLevel}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.riskWarningLevel}" var="error">
                                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                                        error="${error}"/></li>
                            </g:eachError>
                        </ul>
                    </g:hasErrors>
                    <g:textField class="form-control hidden" type="text" name="targetUri" id="targetUri" value="${params.targetUri}"/>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">名称</label>

                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="name" id="name" value="${this.riskWarningLevel?.name}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">执行周期</label>

                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="executeCycle" id="executeCycle" value="${this.riskWarningLevel?.executeCycle}"/>
                        </div>
                    </div>
                    
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <!-- <label class="col-md-2 control-label">工作流</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="workflow.id" id="workflow" value="${this.riskWarningLevel?.workflow?.id}" from="${com.cindata.Workflow.list()}" optionKey="id" optionValue="name" noSelection="['': '请选择工作流']"></g:select>
                        </div> -->

                        <label class="col-md-2 control-label">描述</label>
                        <div class="col-md-3">
                            <g:textArea name="description" id="description" value="${this.riskWarningLevel?.description}" class="form-control textarea" rows="3" cols="15"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>
</html>
